package cn.gupao.test;

import org.apache.commons.lang3.time.DateUtils;

import java.util.Calendar;
import java.util.Date;

public class TimeBound {

    public static void main(String[] args) {

        long t = 1637029497000L;

//        long r = t - t % 3600000 +  3600000;
//        System.out.println(r);

        Date dt = DateUtils.ceiling(new Date(t), Calendar.HOUR);
        long t2 = dt.getTime();
        System.out.println(t2);


    }
}
